package com.hxj.server.config;

import com.hxj.common.core.pojo.bo.user.SecurityUser;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;

/**
 * @Author hxj
 * @Date 2024/10/17 20:17
 * @Description
 */
@Component
public class MyUserDetailsService implements UserDetailsService {

    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {
        // TODO
        SecurityUser securityUser = new SecurityUser();
        securityUser.setUsername(s);
        return securityUser;
    }

}
